package com.gm.listener;

import org.apache.tomcat.util.digester.SetPropertiesRule;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @Author Administrator
 * @Date 2020/6/12 16:03
 **/
public class MyListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("contextInitialized......web项目已启动");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("contextDestroyed......web项目已毁灭");
    }
}
